﻿using System;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Csla;
using System.Collections;
using System.Collections.Generic;

namespace Model
{
    [Serializable()]
    public class RMaVachBOCollection : Csla.BusinessListBase<RMaVachBOCollection, RMaVachBO>
    {
        #region BindingList Overrides
        protected override object AddNewCore()
        {
            RMaVachBO _RMaVachBO = RMaVachBO.NewChildRMaVachBO();
            OnAddingNew(new System.ComponentModel.AddingNewEventArgs(_RMaVachBO));
            _RMaVachBO.STT0 = this.Count + 1;
            Add(_RMaVachBO);
            return _RMaVachBO;
        }
        #endregion BindingList Overrides
        //==========================================================================

        #region Factory Methods
        private RMaVachBOCollection()
        {
        }

        public static RMaVachBOCollection NewRMaVachBOCollection()
        {
            return new RMaVachBOCollection();
        }

        public static RMaVachBO NewRMaVachBO()
        {
            return RMaVachBO.NewChildRMaVachBO();
        }

        #endregion Factory Methods
        //==========================================================================

        #region Criteria
        [Serializable()]
        private class Criteria
        {
            public Criteria()
            {
            }
        }

        [Serializable()]
        public class FilterCriteria
        {
            public FilterCriteria()
            {
            }
        }
        #endregion Criteria
        //==========================================================================

        #region Fetch
        [Transactional(TransactionalTypes.TransactionScope)]
        private void DataPortal_Fetch(SPParam spParam)
        {
            
        }
        #endregion Fetch
        //==========================================================================

        #region Update
        [Transactional(TransactionalTypes.TransactionScope)]
        protected override void DataPortal_Update()
        {
           
        }

        internal void Update()
        {
            
        }
        #endregion Update
        //==========================================================================

        #region Business Method
        

        #endregion Business Method
        //==========================================================================
    }
}
